package priv.winnine.entity.bo;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.SneakyThrows;
import priv.winnine.entity.vo.Response;

@Getter
@Setter
@Builder
public class RequestRecord {

    private RequestInfo requestInfo;
    private String request;
    private Response response;

    @SneakyThrows
    @Override
    public String toString() {
        return new ObjectMapper().writeValueAsString(this);
    }
}
